﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using Caliburn.Core.InversionOfControl;
using MTGenome.MTG;

namespace MTGenome.ViewModels
{
    [PerRequest(typeof(ExpansionViewModel)), PartCreationPolicy(CreationPolicy.NonShared)]
    public sealed class ExpansionViewModel : HaveSubject<IExpansion>
    {
        private bool _isChecked = true;

        public string ID
        {
            get { return Subject.ID; }
        }

        public string Name
        {
            get { return Subject.Name; }
        }

        public bool IsChecked
        {
            get { return _isChecked; }
            set { _isChecked = value; NotifyOfPropertyChange(() => IsChecked); }
        }
    }
}
